package com.chinasofti.demoObject02;

import java.util.Objects;

public class TestStudent {
    public static void main(String[] args) {
//        Student student = new Student();
//        student.setName("张三");
//        student.setAge(18);
//        String result = Objects.toString(student);
//        System.out.println(result);
//        System.out.println(student);
//        Student student = null;
//        String result = Objects.toString(student,"sdfasdf");
//        System.out.println(result);
//        System.out.println(student);
//        Student s = null;
//
//        System.out.println(Objects.isNull(s));
        Student s = null;
         System.out.println(Objects.nonNull(s));
    }
}
